/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package mrez.zBox;


import mrez.zBox.appsmodel.AppsModel;
import mrez.zBox.gui.MainWindow;
import mrez.zBox.gui.SettingsDialog;
import mrez.zBox.gui.SysTrayIcon;
import de.ksquared.system.keyboard.KeyEvent; 
import mrez.zBox.hotkey.HotKey;


/**
 *
 * @author Ahmed
 */
public class zaBox {
    public static zaBox app;
    public AppsModel m_Model;
    public MainWindow m_Window;
    public SysTrayIcon m_TrayIcon;
    public HotKey m_HotKey;
    public SettingsDialog m_SettingDlg;
            
    public static void main(String[] args )
    {
        app = new zaBox();
        app.SetupModel();
        app.SetupGUI();        
        app.SetupSysTray();        
        app.SetupHotKey();
        
    }
    
    public void SetupModel()
    {
        this.m_Model = new AppsModel();
    }
    
    public void SetupGUI()
    {
        this.m_Window = new MainWindow( "zBox" );
    }
    
    public void SetupSysTray()
    {        
        this.m_TrayIcon = new SysTrayIcon();
    }
    
    public void SetupHotKey()
    {
        this.m_HotKey = new HotKey( this );
        this.m_HotKey.AssignHotKey(KeyEvent.VK_OEM_3);
    }
    
    public void ShowSettingsDlg()
    {
        this.m_SettingDlg = new SettingsDialog(null, true);
        
        this.m_SettingDlg.setVisible(true);
    }
}
